package com.sys.entity;

import java.util.List;

import org.apache.ibatis.type.Alias;
@Alias("treeMenus")
public class TreeMenus {
	private int id;
	private String title;
	private boolean checked;
	private boolean spread;
	private List<TreeMenus> children;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	public boolean isSpread() {
		return spread;
	}
	public void setSpread(boolean spread) {
		this.spread = spread;
	}
	public List<TreeMenus> getChildren() {
		return children;
	}
	public void setChildren(List<TreeMenus> children) {
		this.children = children;
	}
	@Override
	public String toString() {
		return "TreeMenus [id=" + id + ", title=" + title + ", checked=" + checked + ", spread=" + spread
				+ ", children=" + children + "]";
	}
	public TreeMenus(int id, String title, boolean checked, boolean spread, List<TreeMenus> children) {
		super();
		this.id = id;
		this.title = title;
		this.checked = checked;
		this.spread = spread;
		this.children = children;
	}
	public TreeMenus() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
